package com.solvePlat.dao;

import com.solvePlat.entity.WorkInfoComment;
import com.solvePlat.entity.WorkInfoCommentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkInfoCommentMapper {
    int countByExample(WorkInfoCommentExample example);

    int deleteByExample(WorkInfoCommentExample example);

    int deleteByPrimaryKey(String uuid);

    int insert(WorkInfoComment record);

    int insertSelective(WorkInfoComment record);

    List<WorkInfoComment> selectByExampleWithBLOBs(WorkInfoCommentExample example);

    List<WorkInfoComment> selectByExample(WorkInfoCommentExample example);

    WorkInfoComment selectByPrimaryKey(String uuid);

    int updateByExampleSelective(@Param("record") WorkInfoComment record, @Param("example") WorkInfoCommentExample example);

    int updateByExampleWithBLOBs(@Param("record") WorkInfoComment record, @Param("example") WorkInfoCommentExample example);

    int updateByExample(@Param("record") WorkInfoComment record, @Param("example") WorkInfoCommentExample example);

    int updateByPrimaryKeySelective(WorkInfoComment record);

    int updateByPrimaryKeyWithBLOBs(WorkInfoComment record);

    int updateByPrimaryKey(WorkInfoComment record);

    List<WorkInfoComment> selectWorkInfoCommentWithUserInfoByWorkInfo(@Param("workInfoId") String workInfoId,@Param("currentUserId") String currentUserId,@Param("targetUserId") String targetUserId);
    List<WorkInfoComment> selectWorkInfoCommentWithUserInfoAndWorkINfoByWorkInfo(@Param("workInfoId") String workInfoId,@Param("currentUserId") String currentUserId,@Param("targetUserId") String targetUserId);
}